#SET(CMAKE_DEBUG_POSTFIX _d)

IF(BUILD_MODULES)
	SET(RELEASE_LINK 
	optimized wxmsw28_core 
	optimized wxbase28 
	optimized wxmsw28_html	
	optimized NovaVisualization${LIB_POSTFIX}	
	optimized NovaCore${LIB_POSTFIX} 
	optimized NovaIO${LIB_POSTFIX}
	optimized  NovaImageProcessing${LIB_POSTFIX}
	)

	SET(DEBUG_LINK  
	debug wxmsw28d_core 
	debug wxbase28d 
	debug wxmsw28d_html 
	debug NovaVisualization${LIB_POSTFIX}d	
	debug NovaCore${LIB_POSTFIX}d	
	debug NovaIO${LIB_POSTFIX}d
	debug NovaImageProcessing${LIB_POSTFIX}d
	)
ELSE(BUILD_MODULES)
	SET(RELEASE_LINK 
	optimized wxmsw28_core 
	optimized wxbase28 
	optimized wxmsw28_html	
	optimized NovaVisualization${LIB_POSTFIX}
	optimized NovaCore${LIB_POSTFIX}	
	optimized NovaIO${LIB_POSTFIX}
	optimized NovaImageProcessing${LIB_POSTFIX}
	)

	SET(DEBUG_LINK  
	debug wxmsw28d_core 
	debug wxbase28d 
	debug wxmsw28d_html 
	debug NovaVisualization${LIB_POSTFIX}d	
	debug NovaCore${LIB_POSTFIX}d	
	debug NovaIO${LIB_POSTFIX}d
	debug NovaImageProcessing${LIB_POSTFIX}d
	)
ENDIF(BUILD_MODULES)

#message(${CMAKE_CURRENT_SOURCE_DIR})
 
SET(SRCs  
			CMIPDemo.h 
			CMIPDemo.cpp 
			ImageCanvas.h 
			ImageCanvas.cpp 
			wxMYPictureFrame.cpp
			wxMYPictureFrame.h
			MainFrame.h 
			MainFrame.cpp 
			SourceWindow.h 
			SourceWindow.cpp
			MyWorkThread.h
			MyWorkThread.cpp
			MyDrawThread.h
  )

add_definitions(-DWXUSINGDLL)
add_executable(CMIPDemo WIN32  ${SRCs} )
target_link_libraries(CMIPDemo ${DEBUG_LINK} ${RELEASE_LINK} comctl32 rpcrt4 Gdi32 User32 )
add_dependencies(CMIPDemo 
					NovaCore${LIB_POSTFIX} 
					NovaVisualization${LIB_POSTFIX}
					NovaImageProcessing${LIB_POSTFIX}
					)

#ADD_CUSTOM_COMMAND(TARGET CMIPDemo
#	PRE_BUILD
#	COMMAND copy $(TargetDir)\\..\\..\\..\\Nova\\Bin\\$(ConfigurationName)\\*.dll  $(TargetDir)
#)
	
	
